package org.leaf.green.admin

class PageLayout {

    String name//页面布局名称
    String domain//对象
    RecordType recordType//记录类型
    Profile profile//简档
    Date dateCreated
    Date lastUpdated
    
    static constraints = {
        name(nullable:false, blank:false, unique : ['domain','recordType', 'profile'], maxSize:30)
        domain(nullable:false, blank:false, maxSize:20)
        recordType(nullable:false)
        profile(nullable:false)
    }
    
    String toString() {
        return "$name"
    }
    
    static mapping = {
        table 'ADMIN_PAGELAYOUT'
    }
}
